<template>
  <div v-if="count" class="count">{{ count }}</div>
</template>

<script>
export default {
  name: 'BindCount',
  props: {
    overallUserID: {
      type: String,
      default: ''
    },
    list: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {}
  },
  computed: {
    count() {
      let cur = this.list.find((e) => e.sysUserId == this.overallUserID)
      return cur ? cur.count : 0
    }
  }
}
</script>

<style lang="less" scoped>
.count {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
  background-color: #16a8f8;
}
</style>
